import { useMediaQuery } from 'react-responsive'

/**
 * 这里就是xs的大小
 */
const isXs = ({ children }) => {
  const flag = useMediaQuery({ maxWidth: 575 })
  return flag ? children : null
}

export default isXs
